package com.imesne.office.excel.write;

import com.imesne.office.excel.model.ExcelRow;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;

/**
 * Created by liyd on 17/7/5.
 */
public interface ExcelRowWriter {

    /**
     * 写标题行
     *
     * @param workbook the workbook
     * @param sheet    the sheet
     * @param excelRow the excel row
     * @return the row
     */
    Row writeExcelTitleRow(Workbook workbook, Sheet sheet, ExcelRow excelRow);

    /**
     * 读取excel row
     *
     * @param workbook the workbook
     * @param sheet    the sheet
     * @param excelRow the excel row
     * @return the row
     */
    Row writeExcelRow(Workbook workbook, Sheet sheet, ExcelRow excelRow);
}
